package com.alibaba.luohua.order.entity;

import com.alibaba.luohua.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 订单表
 *
 * @author luohua
 * @date 2022年3月15日13:42:48
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("pos_order")
public class OrderEntity extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long orderId;

    private String orderNo;

    private Integer orderType;

    private Integer orderStatus;

    private Date orderDate;

    private Integer deliveryType;

    private Integer orderSource;

    private Long orderAmount;

    private Long discountAmount;

    private Long serviceFee;

    private Long oddmentAmount;

    private Long keepAmount;

    private Long memberDiscount;

    private Long totalAmount;

    private Long payAmount;

    private Long cashierId;

    private String cashier;

    private String serialNo;

    private String bookingNo;

    private Date checkoutTime;

    private Date cancelTime;

    private Date refundTime;

    private String refundReason;

    private String remark;

    private String outOrderNo;

    private Long storeId;

    private String storeName;

    private Long orgId;

    private Date expireTime;

    private Integer invoiceType;

    private String invoiceTitle;

    private String invoiceCode;

    private String retCode;

    private String retMsg;

    private Integer version;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

}